﻿using System;
using System.Xml.Serialization;

namespace DongRuanMachineWebService.XmlMapper
{
    [XmlRoot("response")]
    [XmlInclude(typeof(HIS_ATM_01000Body))]
    [XmlInclude(typeof(HIS_ATM_02200Body))]
    [XmlInclude(typeof(HIS_ATM_02120Body))]
    [XmlInclude(typeof(HIS_ATM_03110Body))]
    [XmlInclude(typeof(HIS_ATM_03120Body))]
    [XmlInclude(typeof(HIS_ATM_03130Body))]
    [XmlInclude(typeof(HIS_ATM_03150Body))]
    [XmlInclude(typeof(HIS_ATM_04100Body))]
    [XmlInclude(typeof(HIS_ATM_04110Body))]
    [XmlInclude(typeof(HIS_ATM_04120Body))]
    [XmlInclude(typeof(HIS_ATM_04125Body))]
    [XmlInclude(typeof(HIS_ATM_04126Body))]
    [XmlInclude(typeof(HIS_ATM_04130Body))]
    [XmlInclude(typeof(HIS_ATM_04150Body))]
    [XmlInclude(typeof(HIS_ATM_04210Body))]
    [XmlInclude(typeof(HIS_ATM_04220Body))]
    [XmlInclude(typeof(HIS_ATM_05110Body))]
    [XmlInclude(typeof(HIS_ATM_05120Body))]
    [XmlInclude(typeof(HIS_ATM_05130Body))]
    [XmlInclude(typeof(HIS_ATM_05140Body))]
    [XmlInclude(typeof(HIS_ATM_11101Body))]
    [XmlInclude(typeof(HIS_ATM_11200Body))]
    [XmlInclude(typeof(HIS_ATM_11400Body))]
    [XmlInclude(typeof(HIS_ATM_11500Body))]
    [XmlInclude(typeof(HIS_ATM_05200Body))]
    [XmlInclude(typeof(HIS_ATM_05121Body))]
    [XmlInclude(typeof(HIS_ATM_13100Body))]
    [XmlInclude(typeof(HIS_ATM_13200Body))]
    [XmlInclude(typeof(HIS_ATM_13300Body))]
    [XmlInclude(typeof(HIS_ATM_13400Body))]
    [XmlInclude(typeof(HIS_ATM_13500Body))]
    [XmlInclude(typeof(HIS_ATM_14600Body))]
    public class XMLMapper
    {
        [XmlElement("head")]
        public CommonHead Head { get; set; }
        [XmlElement("body")]
        public CommonBody Body { get; set; }
    }
    public class CommonHead
    {
        [XmlElement("fun")]
        public string Fun { get; set; }

        [XmlElement("version")]
        public string Version { get; set; }

        [XmlElement("code")]
        public string Code { get; set; }

        [XmlElement("err")]
        public string Error { get; set; }
    }
    public class CommonBody
    {
        public static implicit operator CommonBody(string v)
        {
            throw new NotImplementedException();
        }
    }
}